/*
 * Copyright (c) 2023 Huawei Technologies Co., Ltd.
 * openUBMC is licensed under Mulan PSL v2.
 * You can use this software according to the terms and conditions of the Mulan PSL v2.
 * You may obtain a copy of Mulan PSL v2 at:
 *         http://license.coscl.org.cn/MulanPSL2
 * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND,
 * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT,
 * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
 * See the Mulan PSL v2 for more details.
 */

#ifndef GEN_NETWORK_PORT_INTERFACE_H
#define GEN_NETWORK_PORT_INTERFACE_H

#include <device_tree/base.h>

namespace dev::gen {

class MC_API NetworkPort : public mc::engine::interface<NetworkPort> {
public:
    MC_INTERFACE("bmc.dev.NetworkPort")

    property<uint8_t>     PortId;
    property<std::string> MACAddress;
    property<std::string> PermanentMACAddress;
    property<std::string> BDF;
    property<uint8_t>     NetDevFuncType;
    property<std::string> MediumType;
    property<std::string> MaxSpeedSupported;
    property<uint8_t>     WorkloadType;
    property<bool>        LLDPEnabled;

    virtual bool SendNcsiTestPacket(uint8_t cmd_code, const std::string& req_data) = 0;
    virtual bool SetLLDPTxEnable(bool enable) = 0;
};

} // namespace dev::gen

#endif // GEN_NETWORK_PORT_INTERFACE_H